# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=cisco-ocs
pkgver=0.2
pkgrel=6
groups=('blackarch' 'blackarch-cracker')
pkgdesc='Cisco Router Default Password Scanner.'
arch=('x86_64' 'aarch64')
url='http://www.question-defense.com/2013/01/11/ocs-version-0-2-release-ocs-cisco-router-default-password-scanner'
license=('GPL2')
depends=('gcc')
makedepends=('git')
# The true source is "http://www.question-defense.com/wp-content/uploads/OCS-0.2.c"
#  but it will not download due to a User-agent string issue
source=("git+https://github.com/BlackArch/$pkgname.git")
sha512sums=('SKIP')

build() {
  cd $pkgname

  gcc -Wall -Wextra -lpthread "OCS-$pkgver.c" -o $pkgname
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

